home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / SYSRQ.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  838b  |  39 lines

  1. /* -*- linux-c -*-
  2.  *
  3.  *    $Id: sysrq.h,v 1.3 1997/07/17 11:54:33 mj Exp $
  4.  *
  5.  *    Linux Magic System Request Key Hacks
  6.  *
  7.  *    (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
  8.  */
  9.  
  10. #include <linux/config.h>
  11.  
  12. struct pt_regs;
  13. struct kbd_struct;
  14. struct tty_struct;
  15.  
  16. /* Generic SysRq interface -- you may call it from any device driver, supplying
  17.  * ASCII code of the key, pointer to registers and kbd/tty structs (if they
  18.  * are available -- else NULL's).
  19.  */
  20.  
  21. void handle_sysrq(int, struct pt_regs *, struct kbd_struct *, struct tty_struct *);
  22.  
  23. /* Deferred actions */
  24.  
  25. extern int emergency_sync_scheduled;
  26.  
  27. #define EMERG_SYNC 1
  28. #define EMERG_REMOUNT 2
  29.  
  30. void do_emergency_sync(void);
  31.  
  32. #ifdef CONFIG_MAGIC_SYSRQ
  33. #define CHECK_EMERGENCY_SYNC            \
  34.     if (emergency_sync_scheduled)        \
  35.         do_emergency_sync();
  36. #else
  37. #define CHECK_EMERGENCY_SYNC
  38. #endif
  39.